package com.liaowei.comment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liaowei.comment.model.param.PostCommentParam;
import com.liaowei.model.domain.PostComment;
import com.liaowei.model.param.QueryManagePostCommentParam;
import com.liaowei.model.vo.PostCommentVO;

/**
* @author LindaMan
* @description 针对表【wy_post_comment(帖子-评论表)】的数据库操作Service
* @createDate 2023-05-09 15:26:25
*/
public interface PostCommentService extends IService<PostComment> {

    // 评论帖子
    String savePostComment(PostCommentParam commentParam);

    // 删除评论
    String deletePostComment(Long commentId, Long postId, Long userId);

    // 分页查询评论列表
    IPage<PostCommentVO> searchPage(QueryManagePostCommentParam commentParam);

    // 后台-分页查询评论列表
    IPage<PostCommentVO> searchManagePage(int pageNum, int pageSize);

    // 根据帖子id删除帖子的评论
    String deletePostCommentByIdAndUserId(Long postId, Long userId);
}
